<div ng-controller="z-employeeCorporation-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                        <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
              
				<div class="outlet">
	                <div class="panel-body">
	                	<form>
							<div class="row">
								<!-- 检索条件 -->
								<div class="col-xs-12 col-sm-10 col-md-11 form-box">
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">员工：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<!-- <input name="employeeNo" 
													   ng-model="viewModel.employeeNo" 
													   type="text" 
													   placeholder="员工号、中文名称、英文名称"
													   maxLength="45"
													   class="form-control"
													   tabIndex="3" > -->
												<textarea ng-model="viewModel.employeeNo" placeholder="员工号、中文名称、英文名称" class="form-control elastic __web-inspector-hide-shortcut__" rows="1"></textarea>
											</div>
										</div>
										<!-- <div class="col-sm-2 col-md-2 form-input">
											<div class="input-group">
												<button type="button" class="btn btn-success" tabIndex="7">批量</button>	 
											</div>	  
										</div> -->
									</div>
									<div class="col-sm-3 col-md-4 col-lg-3 form-item">
										<div class="col-lg-1 col-md-1">
											<button type="button" class="btn btn-success" ng-click="viewModel.rowCount=1;viewModel.bindData();">搜索</button>
			                            </div>
								    </div>
								</div>
							</div>
						</form>
	                </div>
                </div>
                <div class="outlet outbon">
					<button class="btn btn-success" ng-click="viewModel.add()">新增</button>
                </div>
				<div class="container-fluid">
					<div class="row">
						<!-- <table class="table table-striped  table-bordered table-hover"> -->
						<table class="table table-striped table-bordered" cellspacing="0" width="100%">
							<thead>
								<tr>
									<th width="10%"><b>员工号</b></th>
									<th width="10%"><b>中文</b></th>
									<th width="10%"><b>英文</b></th>
									<td><b>公司</b></td>
									<td width="14%"><b>操作</b></td>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="employee in viewModel.dataList">
									<td>{{employee.employeeNo}}</td>
									<td>{{employee.chineseName}}</td>
									<td>{{employee.englishName}}</td>
									<td>
										<span ng-repeat="corporation in employee.corporationBeanList">
											({{corporation.corporationCode}}){{corporation.corporationName}}
											权限：<span ng-if="corporation.isApproval==0">查询</span><span ng-if="corporation.isApproval==1">查询、审批</span>
											<br>
										</span>
									</td>
									<td>
										<button type="button" 
												class="btn btn-primary btn-sm"
												ng-click="viewModel.update(employee)">分配公司</button>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row">
						<div z-Pagination total-Data='viewModel.totalData'
							per-Page='viewModel.perPage'
							current-Page='viewModel.rowCount'
							on-Click="viewModel.bindData()"
							on-Change-Per-Page="viewModel.bindData()">
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<z-Dialog show-Save-Btn="true" 
		have-Error-Class="true" 
		load-Url="static/html/employeeCorporation/employeeCorporationEdit.html" 
		title="{{editModel.title}}" 
		show="viewModel.show"
		cancel-fn="viewModel.unLoad()"
		save-fn="viewModel.save()"></z-Dialog>
	<z-Dialog show-Save-Btn="true" 
		have-Error-Class="false" 
		load-Url="static/html/employeeCorporation/selectCorporation.html" 
		title="{{viewSelectCorporationModel.title}}" 
		show="viewSelectCorporationModel.show"
		save-fn="viewSelectCorporationModel.save()"
		cancel-fn="viewSelecCorporationModel.unLoad()"></z-Dialog>
	<z-Dialog show-Save-Btn="false"
        have-Error-Class="false"
        load-Url="static/html/employeeCorporation/selectEmployee.html"
        title="{{viewEmployeeModel.title}}"
        show="viewEmployeeModel.show"
        save-fn="viewEmployeeModel.saveEmployee()"
        cancel-fn="viewEmployeeModel.unLoad()"></z-Dialog>
</div>